package com.skygrass.caesar.consumer.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.skygrass.caesar.consumer.fallback.BookFeignFallback;

@FeignClient(name = "caesar-provider", path = "", fallback = BookFeignFallback.class/*, fallbackFactory = BookFeignFallbackFactory.class*/)
public interface BookFeign
{
	@RequestMapping(value = "/book/{id}", method = RequestMethod.GET)
	public String get(@PathVariable("id") Long id);
}
